package org.jeecg.modules.charge.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.charge.entity.ChargeInvoiceShared;
import org.jeecg.modules.charge.vo.CheckOutMangroup;

/**
 * @Description: 领用部门共享
 * @Author: jeecg-boot
 * @Date:   2019-07-18
 * @Version: V1.0
 */
public interface ChargeInvoiceSharedMapper extends BaseMapper<ChargeInvoiceShared> {

    /**
     *  票据共享重复检查SQL
     * @return
     */
    public Long duplicateCheckCountSql(CheckOutMangroup checkOutMangroup);
    public Long duplicateCheckCountSqlNoDataId(CheckOutMangroup checkOutMangroup);

    public Integer selectIsHave(@Param("takeOffice") String takeDeptId, @Param("shareOffice") String officeId);
}
